package com.nikolaj.kuzan.gui;

import com.nikolaj.kuzan.utils.DataTransformer;
import com.nikolaj.kuzan.utils.Printer;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

/**
 * Created by Николай on 14.04.14.
 */
public class Test {
    public static void main(String[] args) throws IOException {
        File file = new File("D:\\a.jpg");
        BufferedImage image;
        DataTransformer dataTransformer = new DataTransformer();

        int imageSize;
        for (int i = 15; i <= 25; i = i+3){
            imageSize = i;
            image = ImageIO.read(file);
            Double[] imageVector = dataTransformer.imgToInputVector(image, false, imageSize);
            System.out.println("Image Size = " + imageSize);
           // Printer.printImg(imageVector, imageSize);
           // System.out.println();
        }
    }
}
